package cn.bugstack.service.impl;

import cn.bugstack.dao.IProductDao;
import cn.bugstack.domain.vo.ProductVO;
import cn.bugstack.service.IProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IProductServiceImpl implements IProductService {
    @Resource
    private IProductDao productDao;

    @Override
    public List<ProductVO> getProducts() {
        return productDao.selectAll();
    }
}
